//
//  main.cpp
//  xigua 1020
//
//  Created by baili on 2024/5/18.
//

#include <iostream>

int countDays(int total) {
    int days = 0;
    while (total > 0) {
        total = (total / 2) - 2;
        days++;
    }
    return days;
}

int main() {
    int totalWatermelons = 1020;
    int days = countDays(totalWatermelons);
    std::cout << "需要 " << days << " 天卖完。" << std::endl;
    return 0;
}
